from django.urls import path
from . import views
from django.views.generic.base import RedirectView

app_name = 'index'
urlpatterns = [
    path('', views.index),
    path('<year>/<int:month>/<slug:day>', views.mydate, name='mydate'),
    path('now/time', views.now_time, name='now_time'),
    # 重定向
    path('turnto', RedirectView.as_view(url='/'), name='turnto'),
]
